package net.zjitc.dao;


import net.zjitc.mapper.CustomerMapper;
import net.zjitc.pojo.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class CustomerDao {

    @Autowired
    private CustomerMapper customerMapper;

    public Customer findByIdCard(String idCard){
        return  customerMapper.selectByIdCard(idCard);
    }
    public Customer findById(long id){
        return  customerMapper.selectById(id);
    }
}
